package com.luck.emp.ex.logic;

import java.util.List;

import com.luck.emp.entity.EmpTWhExD;
import com.luck.emp.entity.EmpTWhExM;
import com.luck.emp.ex.qry.ExQry;
import com.luck.org.entity.VDepartment;
import com.luck.pf.common.entity.UserBean;
import com.luck.pf.framework.logic.IBaseLogic;

/**
 * 说明
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public interface IExLogic extends IBaseLogic{
	/**
	 * 保存
	 **/
	public String saveEx(UserBean userBean, EmpTWhExM entity, String[] productCodes, String[]  qtys) throws Exception;
	/**
	 * 删除
	 */
	public String deleteEx(UserBean userBean, EmpTWhExM entity) throws Exception;
	//确认调拨
	public String saveConfirmEx(UserBean userBean, String exCode) throws Exception;
	
	public List<EmpTWhExD> findExdByExCode(String exCode);
	/**
	 * 查找分页信息
	 */
	//public Page findExPage(ExQry qry);
	public <T> T findExPage(ExQry qry, Class<T> cls);
	//根据登录机构得到可以进行调拨的机构列表
	public List<VDepartment> findExDept(UserBean userBean);
}